package init

import (
	"fmt"
	"github.com/elastic/go-elasticsearch/v7"
	"videosS_rpc/basic/config"
)

func EsInit() {
	cfg := elasticsearch.Config{
		Addresses: []string{
			config.AppConfig.Es.Address,
		},
		// ...
	}
	config.EsIni, _ = elasticsearch.NewClient(cfg)
	fmt.Println("es连接成功")
}
